#! /usr/bin/env ruby
$KCODE = 'utf8'

require File.dirname(File.expand_path(__FILE__))+'/utils.rb'

ci = ['commit','-m']+[ARGV[0]]
hg ci

if is_port_open?(SERVER,get_port(PRO))
  ci = ['push', DEST]
  hg ci
end

